package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 附件对象 sys_attachment
 * 
 * @author ruoyi
 * @date 2020-12-13
 */
public class SysAttachment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 附件ID */
    private Long attachmentId;

    /** 附件名称 */
    @Excel(name = "附件名称")
    private String name;

    /** 所属资源id */
    @Excel(name = "所属资源id")
    private Long ofId;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private String fileSize;

    /** 保存路径 */
    @Excel(name = "保存路径")
    private String filePath;

    /** 后缀 */
    @Excel(name = "后缀")
    private String suffix;

    /** 扩展字段1 */
    @Excel(name = "扩展字段1")
    private String attribute1;

    public void setAttachmentId(Long attachmentId) 
    {
        this.attachmentId = attachmentId;
    }

    public Long getAttachmentId() 
    {
        return attachmentId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setOfId(Long ofId) 
    {
        this.ofId = ofId;
    }

    public Long getOfId() 
    {
        return ofId;
    }
    public void setFileSize(String fileSize) 
    {
        this.fileSize = fileSize;
    }

    public String getFileSize() 
    {
        return fileSize;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }
    public void setSuffix(String suffix) 
    {
        this.suffix = suffix;
    }

    public String getSuffix() 
    {
        return suffix;
    }
    public void setAttribute1(String attribute1) 
    {
        this.attribute1 = attribute1;
    }

    public String getAttribute1() 
    {
        return attribute1;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("attachmentId", getAttachmentId())
            .append("name", getName())
            .append("ofId", getOfId())
            .append("fileSize", getFileSize())
            .append("filePath", getFilePath())
            .append("suffix", getSuffix())
            .append("createTime", getCreateTime())
            .append("attribute1", getAttribute1())
            .toString();
    }
}
